const Layout = () => import('@/layout/index.vue')

export default {
  name: 'setting',
  path: '/setting',
  component: Layout,
  redirect: '/setting/system/index',
  meta: {
    title: '设置',
    icon: 'ep:setting',
    order: 4,
    role: ['setting'],
    requireAuth: true,
  },
  children: [
    {
      name: 'settingSystemIndex',
      path: 'system/index',
      component: () => import('./system/index.vue'),
      meta: {
        title: '系统设置',
        icon: 'eos-icons:file-system-outlined',
        role: ['system'],
        requireAuth: true,
      },
    },
    {
      name: 'settingPersonalIndex',
      path: 'personal/index',
      component: () => import('./personal/index.vue'),
      meta: {
        title: '个人信息',
        icon: 'lucide:user-cog',
        role: ['personalInfo'],
        requireAuth: true,
      },
    },
    {
      name: 'settingRoleIndex',
      path: 'role/index',
      component: () => import('./role/index.vue'),
      meta: {
        title: '角色管理',
        icon: 'carbon:user-role',
        role: ['role'],
        requireAuth: true,
      },
    },
    {
      name: 'settingUserIndex',
      path: 'user/index',
      component: () => import('./user/index.vue'),
      meta: {
        title: '用户管理',
        icon: 'bx:user',
        role: ['user'],
        requireAuth: true,
      },
    },
  ],
}
